define([
	'jquery',
	'underscore',
	'backbone',
	'views/entryView',
	'services/entryProvider'
], function($, _, Backbone, EntryView, EntryProvider){
	
	var showSingleEntry = function(id) {
		var loadEntry = function(entry) {
			var view = new EntryView({model: entry});
			view.render();
		};
		var loadingError = function(error) {
			console.warn(error);
		};
		
		EntryProvider.get(id, loadEntry, loadingError);
	};
	
	return {
		showSingleEntry: showSingleEntry,
	};
});